<?php
/**
 * Enter description here ...
 * @author Micou13630
 *
 */
class HeaderItem extends FormItem implements IRenderable {
	/**
	 * Constructeur
	 * @param unknown_type $name
	 */
	public function HeaderItem ($text) {
		parent::FormItem(null, Constant::EDITOR_TYPE_HEADER);
		
		$this->set('value', $text);
	}

	/**
	 * Implementation de object
	 * @see IRenderable::object()
	 */
	public function object() {
		return get_class($this);
	}

	/**
	 * Implementation de properties
	 * @see IRenderable::properties()
	 */
	public function properties() {
		return parent::getProp($this);
	}
	
	/**
	 * Implementation de scLog
	 * @see IRenderable::scLog()
	 */
	public function scLog() {
		ScCollectionLog::getInstance()->addSc(new ScLog($this->object(), get_object_vars($this)));
	}
	
	/**
	 * Implementation de render
	 * @see IScreen::render()
	 */
	public function render() {
		$this->scLog();
		return "{".$this->properties()."}";
	}
}
?>
